#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>

int main (int argc,char *argv[])
{
	int fd;
	char buf1[32] = {0};
	char buf2[32] = "nihaoya";
	fd = open("/dev/test",O_RDWR);
	read(fd,buf1,sizeof(buf1));
	write(fd,buf2,sizeof(buf2));
	close(fd);	
	return 0;
}
